<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
<div class="timo-detail-page">
    <div class="timo-detail-title">基本信息</div>
    <table class="layui-table timo-detail-table">
        <colgroup>
            <col width="100px">
            <col>
            <col width="100px">
            <col>
        </colgroup>
        <tbody>
        <tr>
            <th>合同名称</th>
            <td th:text="${contract.name}"></td>
            <th>合同编号</th>
            <td th:text="${contract.number}"></td>
        </tr>
        <tr>
            <th>付款方式</th>
            <td th:text="${#dicts.keyValue('PAYTYPE',contract.payType)}"></td>
            <th>金额(万元)</th>
            <td th:text="${contract.price}"></td>
        </tr>

        <tr>
            <th>开始日期</th>
            <td th:text="${#dates.format(contract.startDate, 'yyyy-MM-dd')}"></td>
            <th>结束日期</th>
            <td th:text="${#dates.format(contract.endDate, 'yyyy-MM-dd')}"></td>
        </tr>
        <tr>
            <th>客户名称</th>
            <td th:text="${contract.customerName}"></td>
            <th>项目名称</th>
            <td th:text="${contract.porjectName}"></td>
        </tr>
        <tr>
            <th>联系人</th>
            <td th:text="${contract.contact}"></td>
            <th>联系人手机</th>
            <td th:text="${contract.phone}"></td>
        </tr>
        <tr>
            <th>客户签约人</th>
            <td th:text="${contract.customerSigner}"></td>
            <th>我发签约人</th>
            <td th:text="${contract.signer}"></td>
        </tr>
        <tr>
            <th>负责人</th>
            <td th:text="${contract.userName}"></td>
            <th>协同人</th>
            <td th:text="${partners}"></td>
        </tr>
        <tr>
            <th>附件</th>
            <td colspan="3"><a style="color:#1E9FFF" th:href="@{${contract?.attachment}}">[[${contract?.name}]]</a></td>
        </tr>
        <tr>
            <th>创建者</th>
            <td th:text="${contract.createBy?.nickname}"></td>
            <th>更新者</th>
            <td th:text="${contract.updateBy?.nickname}"></td>
        </tr>
        <tr>
            <th>创建时间</th>
            <td th:text="${#dates.format(contract.createDate, 'yyyy-MM-dd')}"></td>
            <th>更新时间</th>
            <td th:text="${#dates.format(contract.updateDate, 'yyyy-MM-dd')}"></td>
        </tr>
        <tr>
            <th>备注</th>
            <td th:text="${contract.remark}" colspan="3"></td>
        </tr>
        </tbody>
    </table>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>